<template>
  <div id="app">
    <div id="nav">
      <router-link to="/" @click.native="handleClick">Home</router-link> |
      <router-link to="/about">About</router-link>
      <div class="test"></div>
    </div>
    <router-view/>
  </div>
</template>

  <script>
  export default {
    methods:{
      handleClick(){
        console.log(1)
      },
      handleHello(){
        console.log(2)
      },
      handleAbout(){
        
      }
    },
  }
  </script>
<style>
  *{
    margin: 0;
    padding: 0;
  }
  #app{
    width: 10rem;
    margin: 0 auto;
    background-color: red;
  }
</style>
